<?php
   return array( 'controllers' => array( 'invokables' => array( 'UserForm\Controller\Index' => 'UserForm\Controller\IndexController', 'UserForm\Controller\Register'=>'UserForm\Controller\RegisterController', ),),
              'view_manager' => array( 'template_path_stack' => array('userform' => __DIR__ . '/../view', ), ),
              'router' => array( 'routes' => array('userform' => array( 'type' => 'Literal', 'options' => array(
                    'route'    => '/userform',
                    'defaults'=>array( '__NAMESPACE__'=>'UserForm\Controller', 'controller'   =>'Index', 'action' =>'index', ), ),
                    'may_terminate'=>true,
                    'child_routes'=>array('defaults'=>array(
                                                   'type' =>'Segment',
                                                   'options'=>array( 'route' =>'/[:controller[/:action]]',
                                                     'constraints' => array(
                                                                  'controller'=>'[a-zA-Z][a-zA-Z0-9_-]*',
                                                              'action'=>'[a-zA-Z][a-zA-Z0-9_-]*',), 
                                                     'defaults' => array( ),
                                                              ),
                                                     ),
                                        ), 
                              ),
                 ),
            ),
    );


